<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no"  />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>支付宝支付</title> 
</head> 
<body>
${(sHtmlText)!''}

<#--<script>document.forms['alipaysubmit'].submit();</script>-->
<script type="text/javascript" src="${basePath}pay/ap.js"></script>
<script type="text/javascript">
var queryParam = '';
Array.prototype.slice.call(document.querySelectorAll("input[type=hidden]")).forEach(function (ele) {
            if(ele.name === 'req_data') {
                queryParam += ele.name + "=" + ele.value + '&';
            } else {
                queryParam += ele.name + "=" + encodeURIComponent(ele.value) + '&';
            }
        });
var gotoUrl  =document.querySelector("#alipaysubmit").getAttribute('action');
if(gotoUrl.indexOf('?')!= -1 ){
	gotoUrl += "&"+ queryParam;
}else{
	gotoUrl += "?"+ queryParam;
}
_AP.pay(gotoUrl);
</script> 

</body>
</html>
